<!-- $Id: category_info.htm 16752 2009-10-20 09:59:38Z wangleisvn $ -->
{include file="pageheader.htm"}
{* 包含脚本文件 *}

<!-- start add new category form -->
<div class="list-div" id="listDiv">
  <form action="kldiy_log_manage.php" method="post" name="theForm" >
  <table width="100%" id="general-table">
      <tr>
        <th  ><div align="center" style="font-size:14px; font-weight:bold;">新增日志</div></th>
      </tr>
      <tr>
        <td>版本：
               <input name="log_v" type="text" id="log_v" value="{$d1.log_version}"  />
        </td>
      </tr>
      <tr>
        <td><p>更新内容：</p>
                   <textarea name="log_d" id="log_d" cols="100" rows="20">{$d1.log_details}</textarea>
        </td>
      </tr>
            
      <tr>
        
        <td style="text-align:center;"><input type="button" value="保存" onclick="checkthis()" />        </td>
      </tr>
    </table>
	  <div class="button-div">
    <input type="hidden" name="act" value="{$act}" />
    <input type="hidden" name="lid" value="{$d1.id}" />    
        
      </div>
  </form>
</div>
<div>
{foreach from=$data item=d}
	<div class="main-div" style="padding: 15px">
  		<P>版本：{$d.log_version}&nbsp;&nbsp;u{$d.log_date} <span style="margin-left:10px;">[<a href="kldiy_log_manage.php?act=update&lid={$d.id}">修改</a>]</span></P>
		<P></P>
		<P>{$d.log_details}</P>
		<P>{$d.log_date}</P>
	</div>
{/foreach}      
</div>
{literal}
<script language="JavaScript">
<!--

function $(obj){
	return document.getElementById(obj);
}

/**
 * 检查表单输入的数据
 */
function checkthis()
{
 
  //var obj = document.getElementById('log_v');
  var obj = $('log_v');
  if(obj.value == ''){
	  alert('Please input log version.');  
	  return false;
  } 
  var obj = $('log_d');
  if(obj.value == ''){
	  alert('Please input log details.');  
	  return false;
  }
   
  //alert(obj.value);
  document.theForm.submit();

}

//-->
</script>
{/literal}
{include file="pagefooter.htm"}